package com.fowo.api.model.fee.manager.son;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.fowo.api.common.excel.ImageConvert;
import com.fowo.api.sys.entity.SysFile;
import java.util.List;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 费用管理子表 导入导出辅助模型 */
@Getter
@Setter
public class FeeManagerSonExcelPo {

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "所属费用管理")
  private String feeManagerFormIdFeeCode;

  @ExcelIgnore
  @ExcelProperty(value = "所属费用管理")
  private Long feeManagerFormId;

  @ExcelProperty(value = "图片", converter = ImageConvert.class)
  private List<SysFile> picture;

  @Size(max = 50, message = "MSKU长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "MSKU")
  private String msku;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "店铺")
  private String sidShopName;

  @ExcelIgnore
  @ExcelProperty(value = "店铺")
  private Long sid;

  @NotNull(message = "原币金额不能为空")
  @ExcelProperty(value = "*原币金额")
  private java.math.BigDecimal originCurrency;

  @ExcelProperty(value = "本位币金额")
  private java.math.BigDecimal baseCurrencyAmount;

  @Size(max = 500, message = "备注长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "备注")
  private String comment;
}
